package org.demo2.springmvc_demo3.entity;
// 移除 Lombok 的 @Data 注解，手动添加方法
// import lombok.Data;

//User类用于和数据库进行交互
// @Data
public class User {
    private Integer id;
    private String username;
    private String password;
    private String email;
    private String sex;
    private String role;

    // Getter 方法
    public String getUsername() {
        return username;
    }

    // Setter 方法
    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
